import React, { Component } from 'react'
import { connect } from 'react-redux'
import defaultImg from '../../static/girl.gif'
import reciveImg from '../../static/qieaixin.jpg'


class Girl extends Component {
    render() {
        console.log(this.props);
        
        return (
          
               <div>
                    <img src={this.props.status ? reciveImg : defaultImg} alt=''  style={{height:300}}/>
               </div>
          
        )
    }
}
const mapStateToProps = (state) => {
    return state;
}
// export default Girl;
export default connect(mapStateToProps)(Girl)